#!/bin/bash

projectPath=$(cd $(dirname $0)/.. && pwd)
projectName="${projectPath##*/}"

echo "-------------------------------------------------------"
ps aux | grep ${projectName} | grep -v grep
echo "-------------------------------------------------------"
ps aux | grep ${projectName} | grep -v grep | awk '{print $2}' | xargs kill -9
echo "-------------------------------------------------------"
ps aux | grep ${projectName} | grep -v grep
echo "-------------------------------------------------------"
